﻿namespace Web.Control.Member.User
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Text.RegularExpressions;
    using Lx.Web.Common.UI;
    using Lx.Web.Common.ControlsUI;
    using System.Collections;
    using System.Collections.Generic;
    using BLF.WWW_User.Users;
    using Model.WWW_User.User;

    public class Active_step1 : BaseControl
    {
        protected ArrayList arrlist = new ArrayList();
        protected DetailUserModel dum = null;
        protected string memberno = "";
        protected Lx.Web.Common.UI.DatePanel BOD;
        protected string tl = "";
        protected string tll = "";
        protected bool IsShowBod = false;
        protected string Avatar = "";
        protected override void OnLoad(EventArgs e)
        {
            memberno=HttpContext.Current.User.Identity.Name;
            if (memberno== "")
            {
                Page.Response.Redirect(LoginHost + "/User/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
            }
            
            arrlist = User.GetStep1(memberno);
            dum=arrlist[0] as DetailUserModel;
            tl = (string)arrlist[1];
            tll = (string)arrlist[2];
            IsShowBod = (bool)arrlist[3];
            Avatar = (string)arrlist[4];
            if (BOD != null &&dum.BOD != DateTime.Parse("1900-1-1") )
            {

                BOD.Text = dum.BOD.ToString("yyyy-MM-dd");
            }
            base.OnLoad(e);
        }
    }
}
